package com.zmn.oms.persistence.interfaces.discount;

import com.zmn.oms.model.entity.discount.OrderPayDiscount;

import java.util.List;

public interface OrderPayDiscountDao {
    int deleteByPrimaryKey(Long discountId);

    int insert(OrderPayDiscount record);

    int insertSelective(OrderPayDiscount record);

    OrderPayDiscount selectByPrimaryKey(Long discountId);

    int updateByPrimaryKeySelective(OrderPayDiscount record);

    int updateByPrimaryKey(OrderPayDiscount record);

    /**
     * 根据工单ID获取支付优惠明细
     *
     * @param orderId 订单ID
     * @return java.util.List
     */
    List<OrderPayDiscount> listOrderPayDiscountByOrderId(Long orderId);
}